<?php if (!defined('THINK_PATH')) exit(); if(C('LAYOUT_ON')) { echo ''; } ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
	<meta name="format-detection" content="telephone=no">
	<title>跳转提示</title>
	<script type="text/javascript" src="http://tajs.qq.com/stats?sId=37342703" charset="UTF-8"></script>
	<link rel="stylesheet" href="/Public/Index/plugin/frozenui/css/frozen.css">
	<link rel="stylesheet" href="/Public/Index/plugin/frozenui/css/demo.css">
	<script src="/Public/Index/plugin/frozenui/js/zepto.min.js"></script>
	<script src="/Public/Index/plugin/frozenui/js/frozen.js"></script>
	<script src="/Public/Index/js/jquery.min.js"></script>
	<script src="/Public/Index/plugin/layer/build/layer.js"></script>
</head>
<body>

<p class="detail"></p>
<p class="jump" style="font-size: 12px;display: none">
	页面自动 <a id="href" href="<?php echo($jumpUrl); ?>">跳转</a> 等待时间： <b id="wait"><?php echo($waitSecond); ?></b>
</p>
<script type="text/javascript">
	setTimeout(function(){
		<?php if(isset($message)) {?>
	layer.msg('<?php echo($message); ?>',{icon:1});
<?php }else{?>
	layer.msg('<?php echo($error); ?>',{icon:2});
<?php }?>
	},500);


	(function(){
		var wait = document.getElementById('wait'),href = document.getElementById('href').href;
		var interval = setInterval(function(){
			var time = --wait.innerHTML;
			if(time <= 0) {
				location.href = href;
				clearInterval(interval);
			};
		}, 1500);
	})();
</script>
</body>
</html>